package chapter2.No2_3_volatile关键字.a关键字volatile与死循环.demo2;

/**
 * Created by Administrator on 2016/11/15.
 */
public class MyThread extends Thread {
    ServiceClass sc;

    public MyThread(ServiceClass sc) {
        this.sc = sc;
    }

    @Override
    public void run() {
        sc.methodA();
    }
}
